set term x11 persist
# uncomment the next line to output as png image
#set terminal png

# save file to "app-metrics.png"
set output "app-metrics.png"

# graph a title
set title "ab -n 200 -c 20 : localhost/app/happy/"

# nicer aspect ratio for image size
   set size 1,0.7

# y-axis grid
   set grid y

# x-axis label
   set xlabel "request"

# y-axis label
   set ylabel "response time (ms)"

# plot data from "app-metrics.plot" and "enviro-metrics.plot" and "constraints-metrics.plot" using column 9 with smooth sbezier lines
   plot "happy-metrics.plot" using 9 smooth sbezier with lines title "just request:", "enviro-metrics.plot" using 9 smooth sbezier with lines title "+ environemntal constraints:", "exdata-metrics.plot" using 9 smooth sbezier with lines title "+ extra data:"